<?php 
/* SVN FILE: $Id$ */
/* DfwcAdmin Test cases generated on: 2010-11-15 12:22:20 : 1289820140*/
App::import('Model', 'DfwcAdmin');

class DfwcAdminTestCase extends CakeTestCase {
	var $DfwcAdmin = null;
	var $fixtures = array('app.dfwc_admin');

	function startTest() {
		$this->DfwcAdmin =& ClassRegistry::init('DfwcAdmin');
	}

	function testDfwcAdminInstance() {
		$this->assertTrue(is_a($this->DfwcAdmin, 'DfwcAdmin'));
	}

	function testDfwcAdminFind() {
		$this->DfwcAdmin->recursive = -1;
		$results = $this->DfwcAdmin->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('DfwcAdmin' => array(
			'id'  => 1,
			'groupId'  => 1,
			'mail'  => 'Lorem ipsum dolor sit amet',
			'password'  => 'Lorem ipsum dolor sit amet',
			'firstName'  => 'Lorem ipsum dolor sit amet',
			'lastName'  => 'Lorem ipsum dolor sit amet',
			'createdDate'  => '2010-11-15 12:22:20',
			'updatedDate'  => '2010-11-15 12:22:20',
			'comment'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
		));
		$this->assertEqual($results, $expected);
	}
}
?>